package com.raising.modules.cms.entity;

import com.raising.framework.entity.BaseEntity;

/**
* 栏目表
* @author luxy
* @createTime 2018-01-20 19:12:39
*/
public class CmsCategory extends BaseEntity<CmsCategory>{

    private static final long serialVersionUID = 1L;

    /** 站点编号 */
    private String siteId;
    /** 父级编号 */
    private String parentId;
    /** 栏目名称 */
    private String name;
    /** 模块 默认导航 */
    private String module;
    /** 是否在首页显示 */
    private String showHome;
    /** 是否有下级导航 */
    private String isBy;
    /** 自定义视图 */
    private String customView;
    /** 排序 */
    private String sort;
    /** 访问地址 */
    private String href;
    private String orgNm;
    /** 上级栏目*/
    private CmsCategory cmsCategory;

    public CmsCategory() {
        super();
    }
    public CmsCategory(String id){
        super(id);
    }

    public String getSiteId(){
        return siteId;
    }

    public void setSiteId(String siteId){
        this.siteId = siteId;
    }

    public String getParentId(){
        return parentId;
    }

    public void setParentId(String parentId){
        this.parentId = parentId;
    }

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }

    public String getModule(){
        return module;
    }

    public void setModule(String module){
        this.module = module;
    }

    public String getShowHome(){
        return showHome;
    }

    public void setShowHome(String showHome){
        this.showHome = showHome;
    }

    public String getIsBy(){
        return isBy;
    }

    public void setIsBy(String isBy){
        this.isBy = isBy;
    }

    public String getCustomView(){
        return customView;
    }

    public void setCustomView(String customView){
        this.customView = customView;
    }

    public String getSort(){
        return sort;
    }

    public void setSort(String sort){
        this.sort = sort;
    }

    public String getHref(){
        return href;
    }

    public void setHref(String href){
        this.href = href;
    }

    @Override
    public String getOrgNm() {
        return orgNm;
    }

    @Override
    public void setOrgNm(String orgNm) {
        this.orgNm = orgNm;
    }

    public boolean isRootNode() {
        return "0".equals(parentId);
    }

    public CmsCategory getCmsCategory() {
        return cmsCategory;
    }

    public void setCmsCategory(CmsCategory cmsCategory) {
        this.cmsCategory = cmsCategory;
    }

    @Override
    public String toString() {
        return "CmsCategory{" +
            "id='" + id + '\'' + ", " + 
            "parentId='" + parentId + '\'' + ", " +
            "name='" + name + '\'' + ", " + 
            "sort='" + sort + '\'' + ", " +
            "href='" + href + '\'' + ", " + 
            "remarks='" + remarks + '\'' + ", " +
            "status='" + status + '\'' +
        '}';
    }
}
